.386
.model flat,stdcall
option casemap:none

include windows.inc
include user32.inc
include kernel32.inc
include advapi32.inc

includelib user32.lib
includelib kernel32.lib
includelib advapi32.lib

.data
hKey				dd      ?
dwType              dd      0
dwSize              dd      0
szKey               db      "d", 0
szValue             db      "d", 0

.code

start:
    invoke RegCreateKey, HKEY_LOCAL_MACHINE, szKey, addr hKey
    invoke RegSetValueEx, hKey, szValue, NULL, dwType, szValue, dwSize
    invoke RegCloseKey, hKey
end start